package pl.edu.agh.neuraleconomy.core.nn.transformer;

import pl.edu.agh.neuraleconomy.core.ta.indicator.ICalculator;

public abstract class IndicatorTransformer<CALCULATOR extends ICalculator> implements IDataTransformer {

	protected CALCULATOR calculator;
	
	public IndicatorTransformer(CALCULATOR calc){
		this.calculator = calc;
	}
	
	public double[] transform(double[] data) {
		return calculator.calculate(data);
	}

}
